/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package factorial;

import java.util.Scanner;

/**
 *
 * @author user
 */
public class Test {

    public static void main(String[] args) {

        System.out.println("Введи размер масива");
        Scanner sc = new Scanner(System.in);
        String value = sc.nextLine();
        int size = Integer.parseInt(value);
        int[] j = new int[size];
        for (int i = 0; i < size; i++) {
            System.out.println("Введи число");
            String tmpValue = sc.nextLine();
            j[i] = Integer.parseInt(tmpValue);
        }
        for (int i = 0; i < size; i++) {
            if (i < (size - 1)) {
                System.out.print(j[i]+",");
            }else{
                System.out.print(j[i]);
            }
        }

    }

}
